home *** CD-ROM | disk | FTP | other *** search
/ Clickx 36 / Clickx 36.iso / mac / assets / software / tuxpaint.dmg / Tux Paint.app / Contents / Frameworks / dirwalk.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-10-20  |  814 b   |  38 lines

  1. /*
  2.   dirwalk.h
  3. */
  4.  
  5. #ifndef DIRWALK_H
  6. #define DIRWALK_H
  7.  
  8. #include "SDL.h"
  9.  
  10. #include "compiler.h"
  11.  
  12. /////////////////////////////// directory tree walking /////////////////////
  13.  
  14. #define TP_FTW_UNKNOWN 1
  15. #define TP_FTW_DIRECTORY 2
  16. #define TP_FTW_NORMAL 0
  17.  
  18. #define TP_FTW_PATHSIZE 400
  19.  
  20. typedef struct tp_ftw_str
  21. {
  22.   char *str;
  23.   unsigned char len;
  24. //  unsigned char is_rsrc;
  25. } tp_ftw_str;
  26.  
  27.  
  28. void loadfont_callback(SDL_Surface * screen, const char *restrict const dir,
  29.                unsigned dirlen, tp_ftw_str * files, unsigned i);
  30. int compare_ftw_str(const void *v1, const void *v2);
  31. void tp_ftw(SDL_Surface * screen, char *restrict const dir, unsigned dirlen,
  32.         int rsrc, void (*fn) (SDL_Surface * screen,
  33.                   const char *restrict const dir,
  34.                   unsigned dirlen, tp_ftw_str * files,
  35.                   unsigned count));
  36.  
  37. #endif
  38.